* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a1f;
  color: #e0e0ff;
  overflow: hidden;
  height: 100vh;
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
}

/* Главная страница */
.page {
  display: none;
  min-height: 100vh;
  position: relative;
}

.page.active {
  display: block;
}

header {
  background: rgba(10, 10, 31, 0.85);
  padding: 20px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 80, 255, 0.3);
  z-index: 10;
  position: relative;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, #7850ff, #50c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  color: #e0e0ff;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: #50c8ff;
}

.login-header-btn {
  padding: 10px 24px;
  background: linear-gradient(90deg, #7850ff, #50c8ff);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.login-header-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(120, 80, 255, 0.6);
}

/* Герой секция */
.hero {
  text-align: center;
  padding: 160px 20px 100px;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 40px;
  color: #b0b0ff;
}

.cta-btn {
  padding: 16px 40px;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #7850ff, #50c8ff);
  border: none;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(120, 80, 255, 0.4);
}

/* Инфо карточки */
.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.card {
  background: rgba(25, 25, 60, 0.75);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(120, 80, 255, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(20, 20, 50, 0.98);
  padding: 50px 45px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 50px rgba(120, 80, 255, 0.4);
  border: 1px solid rgba(150, 100, 255, 0.3);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff4d4d;
}

.modal-content h2 {
  margin-bottom: 30px;
  background: linear-gradient(90deg, #7850ff, #50c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-group {
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.09);
  color: white;
  font-size: 1.05rem;
}

input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(120, 80, 255, 0.4);
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #7850ff, #50c8ff);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.modal-footer-text {
  margin-top: 25px;
  color: #a0a0ff;
}

.modal-footer-text a {
  color: #50c8ff;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 30px;
  color: #666699;
  position: absolute;
  bottom: 0;
  width: 100%;
}